public class Cutso {
    private String name;
    private String product;
    void setName(String name1){
        name=name1;
    }
    String getName(){
        return name;
    }


    void shopping(Market market,Product product){
        Product p=market.sell(product);
        if (p!=null){
            System.out.println(name+"在"+market.getName()+"买到了"+product.getName());
        }
        else{
            System.out.println(name+"在"+market.getName()+"没有买到"+product.getName());
        }
    }
}
